## docker build --no-cache=true -f php.dockerfile -t h5-video-site .
FROM generals/centos7

RUN yum install -y php php-fpm php-mysqlnd && yum clean all
## 行替换fpm配置文件
RUN sed -i 's/^listen = 127.0.0.1:9000/listen = 0.0.0.0:9000/g' /etc/php-fpm.d/www.conf
RUN sed -i 's/^listen.allowed_clients/;listen.allowed_clients/' /etc/php-fpm.d/www.conf
RUN sed -i 's/^post_max_size.*/post_max_size = 500M/' /etc/php.ini
RUN sed -i 's/^upload_max_filesize.*/upload_max_filesize = 500M/' /etc/php.ini

CMD ["php-fpm"]
